package com.sam4cloud.oauth2.project.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @Author: Sam
 * @Date: 2022-12-08 14:59
 * @Description: 冻结状态枚举类 映射db
 */
public enum FreezeEnum {
    NORMAL("0", "正常"),
    FREEZE("1", "冻结"),
    ;

    FreezeEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @EnumValue //标记数据库值code
    @JsonValue //标记响应json值
    private String code;
    //@JsonValue //标记响应json值
    private String desc;

}
